﻿<ResourceDictionary xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="CommonStyles.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <!-- Color Brushes -->
    <!--<SolidColorBrush x:Key="NavigationBackgroundColorBrush" Color="#FF484848"/>-->

    <!-- Pages Layout -->
    <Style x:Key="PageLayoutStyle" TargetType="Grid" BasedOn="{StaticResource MaxWidth1280}">
        <Setter Property="Margin" Value="5" />
    </Style> 
    
    <!-- Page Notes text -->
    <Style x:Key="PageNotesStyle" TargetType="TextBlock">
        <Setter Property="Margin" Value="0 0 10 25" />
        <Setter Property="TextWrapping" Value="Wrap"></Setter>
    </Style>

    <!-- Page Sections -->
    <Style x:Key="SectionHeaderStyle" TargetType="sdk:Label">
        <!--<Setter Property="Background" Value="#FFFFFFFF"/>-->
        <Setter Property="FontWeight" Value="Bold" />
    </Style>

    <Style x:Key="PageSectionHeader" TargetType="sdk:Label">
        <Setter Property="IsTabStop" Value="False"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="sdk:Label">
                    <sdk:Label Style="{StaticResource SectionHeaderStyle}" Content="{TemplateBinding Content}" />
                    <!-- <ContentPresenter Content="{TemplateBinding Content}" /> -->
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <!-- Grid controls -->
    <Style x:Key="ItemsGridStyle" TargetType="sdk:DataGrid">
        <Setter Property="AutoGenerateColumns" Value="False" />
        <Setter Property="IsReadOnly" Value="True" />
        <Setter Property="Margin" Value="10" />
        <Setter Property="VerticalAlignment" Value="Stretch" />
    </Style>

    <!-- ========================= User Management Page ===================================== -->
    <Style x:Key="UserManagementSearchLabel" TargetType="TextBlock">
        <Setter Property="Margin" Value="10 10 0 10" />
        <Setter Property="VerticalAlignment" Value="Center" />
    </Style>
    <Style x:Key="UserManagementSearchEditor" TargetType="Control">
        <Setter Property="Margin" Value="10 0 0 0" />
        <Setter Property="Width" Value="150" />
        <Setter Property="Height" Value="20" />
        <Setter Property="VerticalAlignment" Value="Center" />
    </Style>
    <Style x:Key="UserManagementSearchButton" TargetType="Button">
        <Setter Property="Margin" Value="10 0 0 0" />
        <Setter Property="Height" Value="25" />
        <Setter Property="Padding" Value="7 0" />
    </Style>
    <Style x:Key="UserManagementSearchAlphabetContainer" TargetType="StackPanel">
        <Setter Property="Margin" Value="10 10 0 10" />
        <Setter Property="Orientation" Value="Horizontal" />
        <Setter Property="Grid.Column" Value="0" />
    </Style>
    <Style x:Key="UsersNumberContainer" TargetType="StackPanel">
        <Setter Property="Margin" Value="10 10 0 10" />
        <Setter Property="Orientation" Value="Horizontal" />
    </Style>
    <Style x:Key="lblUsersNumber" TargetType="sdk:Label">
        <Setter Property="Margin" Value="10 0 0 0" />
        <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="UserManagementSearchAlphabetLink" BasedOn="{StaticResource ActionLink}" TargetType="HyperlinkButton">
        <Setter Property="Margin" Value="0 0 5 0" />
    </Style>

</ResourceDictionary>